<?php
/**
 * Created by PhpStorm.
 * User: jwb
 * Date: 2020/9/3
 * Time: 15:54
 */

namespace App\Admin\Extensions\Echarts;

use Encore\Admin\Extension;

class ECharts extends Extension
{
    public $name = 'echarts';
    public $views = __DIR__ . '/../resources/views';
    public $assets = __DIR__.'/../resources/assets';
    static public function content($option=[],$data = []){
        $data['chart'] = $data['chart']??$option.'_'.time();
        return view(config('admin.route.prefix').'.echarts.'.$option,$data);
    }

}